# 写法一
for i in range(1, 10):
    for j in range(1, i + 1):
        print(f'{j}*{i}={i * j}', end='\t')
    print('\n')

print('-'.center(80, '-'))


# 写法二
def mul(n):
    if n > 9:
        return
    for m in range(1, n + 1):
        print(f'{m}*{n}={m * n}', end='  ')
    print('\n')
    mul(n + 1)


mul(1)
